package users;

import dbConnection.DbManage;

public class EmployerBean
{
    private String name;
    private String field;
    private String address;
    private String email;
    private String username;
    private String password;
    public String getName()
    {
	return name;
    }
    public void setName(String name)
    {
	System.out.println(name+"'e set ettim");
	this.name = name;
    }
    public String getField()
    {
	return field;
    }
    public void setField(String field)
    {
	this.field = field;
    }
    public String getAddress()
    {
	return address;
    }
    public void setAddress(String address)
    {
	this.address = address;
    }
    public String getEmail()
    {
	return email;
    }
    public void setEmail(String email)
    {
	this.email = email;
    }
    public String getUsername()
    {
	return username;
    }
    public void setUsername(String username)
    {
	this.username = username;
    }
    public String getPassword()
    {
	return password;
    }
    public void setPassword(String password)
    {
	this.password = password;
    }
    public String setNewEmployer()
    {
	Employer employer = new Employer(name, field, address, email, username, password);
	DbManage dbManage = new DbManage();
	dbManage.addNewEmployer(employer);
	return "MainPage.xhtml";
    }
}
